#import <sys/types.h>
#import <sys/socket.h>
#import <netinet/in.h>

#import <GraphicsServices/GraphicsServices.h>
#import <UIKit/UIApplication.h>

@interface Target: NSObject
{
	NSString *name;
	NSString *mac;
}

@property(nonatomic, retain) NSString *name;
@property(nonatomic, retain) NSString *mac;

- (id)initWithName:(NSString *)aName mac:(NSString *)aMac;
@end

@class UIWindow, UITable;
@class UITransitionView;
@class UITableColumn;
@class UIPreferencesTableCell;
@class UIPreferencesTextTableCell;
@class UIPreferencesTable;

@interface Application : UIApplication 
{
	NSUserDefaults *defaults;
	
	UIWindow *window;
	UIView *wholeView;
	UINavigationBar *navBar;
	UITable *targetTable;
	UITransitionView *view;
	
	UITableColumn *nameColumn, *macColumn;
	
	UIPreferencesTable *editTable;
	UIPreferencesTextTableCell *name;
	UIPreferencesTextTableCell *mac;
	
	NSMutableArray *targets;
	
	// socket
	int sock;
	struct sockaddr_in addr;
}

@property(retain, nonatomic) UIPreferencesTextTableCell *name;
@property(retain, nonatomic) UIPreferencesTextTableCell *mac;

+ (void)initialize;

- (void)dealloc;

- (void)applicationDidFinishLaunching:(UIApplication *)application;

@end
